import { axios } from '@/utils/request'

export function selectPage (parameter) {
  return axios({
    url: '/system/coupon/list',
    method: 'get',
    params: parameter
  })
}

export function saveOrUpdate (parameter) {
  return axios({
    url: '/system/coupon/saveOrUpdate',
    method: 'post',
    data: parameter
  })
}

export function del (id) {
  return axios({
    url: '/system/coupon/' + id,
    method: 'delete'
  })
}

export function statusBtn (parameter) {
  return axios({
    url: '/system/coupon/status/' + parameter,
    method: 'put'
  })
}
